package com.powernode.spring6.bean;

public class User {
    private String username;

    public void setUsername(String username) {
        this.username = username;
        System.out.println("第二步：给属性赋值");
    }

    public User() {
        System.out.println("第一步：无参构造方法执行");
    }

    public void initBean() {
        System.out.println("第四步：初始化bean");
    }

    public void destroyBean() {
        System.out.println("第七步：销毁bean");
    }
}
